
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Vector;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import com.sun.java.accessibility.util.EventID;

import OddsObjects.NumericOdd;
import OddsObjects.OddsTemplate;
import OddsObjects.Soccer.MoneyLine;
import java.util.Date;

import javax.swing.text.DateFormatter; 


public class TestHarness {

	public static void main(String[] args) throws IOException, ParseException {
		String home = "alex";
		String away = "dad";
		DateFormat df = new SimpleDateFormat("HH:mm dd/mm/yyyy");
		Date d = df.parse("13:00 03/01/2013");
		Date d2 = df.parse("13:00 04/01/2013");
		
		SportsEventID i = SportsEventID.EventIDGenerator.generateID(home, away, d);
		
		System.out.println(i.id);
		
		SportsEventID j = SportsEventID.EventIDGenerator.generateID(home, away, d);
		
		System.out.println(j.id);
		
		SportsEventID h = SportsEventID.EventIDGenerator.generateID(home, away, d2);
		
		System.out.println(h.id);
	}
	
	
//	
//	/**
//	 * @param args
//	 * @throws IOException 
//	 */
//	public static void main(String[] args) throws IOException {
//		// TODO Auto-generated method stub
//		
////		String pageUrl = "http://www.sportsinteraction.com/sportsbook/index.cfm?section=events&eventTypeID=25&gameID=426884&moreBets=true";
////		
////		SportsInteractionSoccerReader sp = new SportsInteractionSoccerReader();
////		MoneyLine ml = null;
////		try {
////			ml = sp.extractMoneyLineJSoup(new URL(pageUrl));
////		} catch (MalformedURLException e) {
////			// TODO Auto-generated catch block
////			e.printStackTrace();
////		} catch (IOException e) {
////			// TODO Auto-generated catch block
////			e.printStackTrace();
////		}
//		
//		Triple8SportReader reader = new Triple8SportReader();
//		String testUrl = "http://www.888sport.com/bet?action=go_event&ev_id=3656644";
//		//URL u = new URL(testUrl);
//		//URL u = new URL("C:/Users/Alexander/Downloads/888sport astonvilla v reading.htm");
////		File f = new File("C:/Users/Alexander/Downloads/888sport astonvilla v reading.htm");
////		if(!f.exists())
////			System.out.print("uhoh");
////		Document doc = Jsoup.parse(f, "UTF-8", "www.888sport.com/bet");
//		Document doc = Jsoup.connect("http://www.888sport.com/bet?action=go_event&ev_id=3656651").get();
//		Vector<OddsTemplate> o = reader.QuincyParser(doc);
//		
//		System.out.println("Done.");

}
